﻿namespace Simple.Repository.Models.System
{
    public class SysFileInfo : BusinessEntityBase<Guid>
    {
        /// <summary>
        /// 文件夹Id
        /// </summary>
        public Guid? FolderId { get; set; }

        /// <summary>
        /// 是否文件夹
        /// </summary>
        public bool IsFolder { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        [MaxLength(300)]
        public string FileName { get; set; } = string.Empty;

        /// <summary>
        /// 文件名称
        /// </summary>
        [MaxLength(500)]
        public string HashFileName { get; set; } = string.Empty;

        /// <summary>
        /// 文件大小
        /// </summary>
        [MaxLength(50)]
        public string FileSize { get; set; } = string.Empty;

        /// <summary>
        /// 文件后缀
        /// </summary>
        [MaxLength(50)]
        public string Filesuffix { get; set; } = string.Empty;

        /// <summary>
        /// 存储路径
        /// </summary>
        [MaxLength(500)]
        public string FilePath { get; set; } = string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(1000)]
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 业务来源
        /// </summary>
        [MaxLength(50)]
        public string BusinessType { get; set; } = string.Empty;

        /// <summary>
        /// 业务绑定ID
        /// </summary>
        [MaxLength(50)]
        public string BusinessId { get; set; } = string.Empty;

        /// <summary>
        /// 是否系统文件
        /// </summary>
        public bool IsSystemFile { get; set; }
    }
}
